<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>{$t['title']} - {:set('title')} </title>
	<meta name="keywords" content="{$t['keywords']}">
	<meta name="description" content="{$t['description']}">
    {include file="header"}
    <link rel="stylesheet" href="*ADMIN*/wangEditor/css/wangEditor.min.css">
    <script type="text/javascript" src="*ADMIN*/wangEditor/js/wangEditor.min.js"></script>
    <div class="content-box pb-20">
        <div class="newsContent fn-clear">
            <div class="label-nav-box">	
                <a href="/">首页</a>&gt;	
                <a href="{:url('index/index/cate')}">文章资讯</a>&gt;	
                <a href="{:url('index/index/cate',array('alias'=>$cate.alias))}">{:fun_cate($t.tid, 'name')}</a>&gt;	
                <a href="" class="tiezi-title-label">详情</a>
            </div>
            <div class="newsArticle">
                <div class="n_article_tit">
                    <h4>{$t['title']}</h4>
                    <div class="art_remark">
                        <p>
                            <span>{$t.time|times}</span>
                        </p>
                        <p>
                            <strong>作者：<a href="{:url('index/user/uid',array('id'=>$t.uid))}" target="_blank">{:fun_u($t.uid, 'username')}</a></strong>
                        </p>
                        <p>
                            <i class="iconfont icon-liulan"></i><span>阅读：{$t['view']}</span>
                        </p>
                        <p>
                            <a href="#comment"><i class="iconfont icon-pinglun"></i><span>评论：{$t['pinglun']}</span></a>
                        </p>
                        <p>
                            <a href="javascript:;" class="shoucang bk" url="{:url('index/api/shoucang',array('id'=>$t.id,'m'=>$t.m))}">{if fun_st('shoucang',array('m'=>$t.m,'tid'=>$t.id,'uid'=>user('userid')))>0}收藏成功{else/}收藏{/if}</a>
                        </p>
                        <p>
                            <a href="javascript:;" class="dianzan bk" zan="{$t['zan']+1}" url="{:url('index/api/zan',array('id'=>$t.id,'m'=>$t.m))}">点赞(<span class="dianzans">{$t['zan']}</span> )</a>
                        </p>
                    </div>
                    <div class="content_p">
                        <div class="wangEditor-container" style="border: 0px solid #e6e6e6;margin-bottom: 30px">
            		        <div class="wangEditor-txt" style="padding: 0;">
                                {if $fufei==1}
                                <a href="javascript:;" class="del_t fufei" name="确定要付费{$t['jifen']}{:set('jifen',2)}查看该内容吗？下次无需付费" url="{:url('index/api/fufei',array('id'=>$t.id,'m'=>$t.m))}"><i class="iconfont">&#xe605;</i> 付费{$t['jifen']}{:set('jifen',2)}查看隐藏内容</a>
                                {else/}
                                {$t.content}
                                {/if}
                            </div>
                        </div>
                    </div>
                </div>
                 
            </div>
            <div class="comment" id="comment">
                <div class="c-title fn-clear">
                    <h4>精彩评论<small>文明上网理性发言，请遵守评论服务协议</small></h4>
                    <a href="javascript:;" class="tnum">共{$t['pinglun']}条评论</a>
                </div>
                <form class="layui-form layui-form-pane form1" url="{:url('index/api/comment_add')}" t_url="javascript:parent.location.reload();" id="commentform">
                    <input type="hidden" name="id" value="{$t.id}">
                    <input type="hidden" name="m" value="{$t.m}">
                    <input type="hidden" class="huifuS" name="tid" value="0">
                    <div class="c-area">
                        <textarea id="textarea" name="content" class="textarea" placeholder="说出您的看法...."></textarea>
                        <div class="c-sub fn-clear">	<a href="javascript:;" lay-submit lay-filter="cms1" class="subtn login">评论</a>
                        </div>
                    </div>
                </form>
                <div class="c-content">
                    <ul class="c-nav fn-clear">
                        <li>全部评论</li>
                    </ul>
                    <ul class="c-list" id="commentList">
                        {volist name=":fun_s('comment',array('open'=>1,'tid'=>0,'fid'=>$t['id'],'m'=>$t.m),'id desc',10,false,0)" id="vo"}
                        <li class="fn-clear">
                            <img src="{:fun_sc_p('member', array('userid'=>$vo['uid']), 'userhead')}" alt="{:fun_sc_p('member', array('userid'=>$vo['uid']), 'username')}">
                            <div class="c-body">
                                <div class="c-header"> <a href="{:url('index/user/uid',array('id'=>$vo.uid))}" target="_blank">{:fun_sc_p('member', array('userid'=>$vo['uid']), 'username')}</a>  <span>{$vo.time|times}</span> 
                                </div>
                                <p>{$vo.content|htmlspecialchars_decode}</p>
                                <div class="c-footer"> 
                                    <a href="javascript:;" class="reply huifu" data="{:url('index/api/comment_add',array('id'=>$t.id,'tid'=>$vo.id,'m'=>$t.m))}" href="javascript:;" name="@{:fun_u($vo.uid, 'username')}"><i class="iconfont">&#xe61e;</i>回复</a> 
                                </div>
                            </div>
                        </li>
                        {volist name=":fun_s('comment',array('open'=>1,'tid'=>$vo.id,'fid'=>$t['id'],'m'=>$t.m),'id desc',10,false,0)" id="v"}
                        <li class="fn-clear">
                            <img src="{:fun_sc_p('member', array('userid'=>$v['uid']), 'userhead')}" alt="{:fun_sc_p('member', array('userid'=>$v['uid']), 'username')}">
                            <div class="c-body">
                                <div class="c-header"> 
                                    <a href="{:url('index/user/uid',array('id'=>$vo.uid))}" target="_blank">{:fun_sc_p('member', array('userid'=>$v['uid']), 'username')}</a>  @ 
                                    <a href="{:url('index/user/uid',array('id'=>$vo.uid))}" target="_blank">{:fun_sc_p('member', array('userid'=>$vo['uid']), 'username')}</a>
                                <span>{$v.time|times}</span> 
                                </div>
                                <p>{$v.content|htmlspecialchars_decode}</p>
                            </div>
                            <div class="c-footer"> </div>
                        </li>
                        {/volist}
                        {/volist}
                    </ul>
                    {:fun_s('comment',array('tid'=>0,'open'=>1,'fid'=>$t.id,'m'=>$t.m),'id desc',10,0)->render()}
                </div>
            </div>
        </div>
        <div class="kong"></div>
    </div>
    {include file="footer"}